package com.sunnada.weixin.util.connectionTest;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class connTest extends HttpServlet {
	
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

			request.setCharacterEncoding("utf-8");
			response.setContentType("text/html; charset=UTF-8");
			response.setCharacterEncoding("utf-8");
			
			String code = request.getParameter("code");  
			System.out.println("获取到的code为：" + code);
			
			
			
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		
	}

}
